import request from '@/utils/request'

// 查询生产商名录列表
export function listGongyingshang(query) {
  return request({
    url: '/gongyingshang/gongyingshang/list',
    method: 'get',
    params: query
  })
}

// 查询生产商名录详细
export function getGongyingshang(sId) {
  return request({
    url: '/gongyingshang/gongyingshang/' + sId,
    method: 'get'
  })
}

// 新增生产商名录
export function addGongyingshang(data) {
  return request({
    url: '/gongyingshang/gongyingshang',
    method: 'post',
    data: data
  })
}

// 修改生产商名录
export function updateGongyingshang(data) {
  return request({
    url: '/gongyingshang/gongyingshang',
    method: 'put',
    data: data
  })
}

// 删除生产商名录
export function delGongyingshang(sId) {
  return request({
    url: '/gongyingshang/gongyingshang/' + sId,
    method: 'delete'
  })
}
